package com.aptech.domain.JPA;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * EventRequest entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="EVENT_REQUEST"
    ,schema="dbo"
    ,catalog="Blue_Pumpkin"
)

public class EventRequest  implements java.io.Serializable {


    // Fields    

     private Integer eventRequestId;
     private Account account;
     private Event event;
     private Timestamp aprovedDate;
     private Timestamp aprovedBy;
     private Timestamp createdDate;
     private String status;
     private Integer addressId;


    // Constructors

    /** default constructor */
    public EventRequest() {
    }

	/** minimal constructor */
    public EventRequest(Integer eventRequestId, Account account, Event event, Integer addressId) {
        this.eventRequestId = eventRequestId;
        this.account = account;
        this.event = event;
        this.addressId = addressId;
    }
    
    /** full constructor */
    public EventRequest(Integer eventRequestId, Account account, Event event, Timestamp aprovedDate, Timestamp aprovedBy, String status, Integer addressId) {
        this.eventRequestId = eventRequestId;
        this.account = account;
        this.event = event;
        this.aprovedDate = aprovedDate;
        this.aprovedBy = aprovedBy;
        this.status = status;
        this.addressId = addressId;
    }

   
    // Property accessors
    @Id 
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name="EVENT_REQUEST_ID", unique=true, nullable=false)

    public Integer getEventRequestId() {
        return this.eventRequestId;
    }
    
    public void setEventRequestId(Integer eventRequestId) {
        this.eventRequestId = eventRequestId;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="ACCOUNT_ID", nullable=false)

    public Account getAccount() {
        return this.account;
    }
    
    public void setAccount(Account account) {
        this.account = account;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="EVENT_ID", nullable=false)

    public Event getEvent() {
        return this.event;
    }
    
    public void setEvent(Event event) {
        this.event = event;
    }
    
    @Column(name="APROVED_DATE", length=23)

    public Timestamp getAprovedDate() {
        return this.aprovedDate;
    }
    
    public void setAprovedDate(Timestamp aprovedDate) {
        this.aprovedDate = aprovedDate;
    }

    @Column(name="CREATED_DATE", length=23)

    public Timestamp getCreatedDate() {
        return this.createdDate;
    }

    public void setCreatedDate(Timestamp createdDate) {
        this.createdDate = createdDate;
    }
    
    @Column(name="APROVED_BY", length=23)

    public Timestamp getAprovedBy() {
        return this.aprovedBy;
    }
    
    public void setAprovedBy(Timestamp aprovedBy) {
        this.aprovedBy = aprovedBy;
    }
    
    @Column(name="STATUS", length=18)

    public String getStatus() {
        return this.status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    @Column(name="ADDRESS_ID", nullable=true)

    public Integer getAddressId() {
        return this.addressId;
    }
    
    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }
   








}